<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>My JSP 'queryForList' starting page</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<style type="text/css">
		<!--
		body,td,th {
			font-size: 12px;
		}
		
		.STYLE1 {
			color: #FF0000
		}
		-->
		</style>
	</head>

	<body oncontextmenu="return false">
		<form name="userForm" method="post" action="<%=request.getContextPath() %>/user/saveForUserJump.action">
			<table width="80%" border="1" align="center" cellpadding="1"
				cellspacing="1">
				<tr>
					<td height="25" colspan="5" align="right">
						<input type="submit" name="Submit" value="新增">
					</td>
				</tr>
				<tr align="center">
					<td width="12%" height="25">
						编号
					</td>
					<td width="21%" height="25">
						用户账号
					</td>
					<td width="21%" height="25">
						用户名称
					</td>
					<td width="32%" height="25">
						用户级别
					</td>
					<td width="100" height="25">&nbsp;
						
					</td>
				</tr>
				<c:forEach items="${userList}" var="userList"
					varStatus="userListCount">
					<tr align="center">
						<td height="25">
							${userListCount.count }
						</td>
						<td height="25">
							${userList.useracc }
						</td>
						<td height="25">
							<a href="<%=request.getContextPath() %>/user/showForUser.action?userid=${userList.userid }">${userList.username }</a>
						</td>
						<td height="25">
							<c:if test="${userList.userstate eq 0 }">管理用户</c:if>
							<c:if test="${userList.userstate eq 1 }">普通用户</c:if>
						</td>
						<td width="100" height="25">
							<a href="<%=request.getContextPath() %>/user/updateForUserJump.action?userid=${userList.userid }">编辑</a>
							&nbsp;|&nbsp;
							<a href="<%=request.getContextPath() %>/user/deleteForUser.action?userid=${userList.userid }">删除</a>
						</td>
					</tr>
				</c:forEach>
				<c:if test="${empty userList}">
					<tr>
						<td height="25" colspan="5" align="center">
							<span class="STYLE1">暂无数据</span>
						</td>
					</tr>
				</c:if>
			</table>
		</form>
	</body>
</html>
